/*
 * @Descripttion:
 * @version:
 * @Author: HuA
 * @Date: 2022-10-13 09:19:51
 * @LastEditors: HuA
 * @LastEditTime: 2022-10-13 09:28:29
 */
import { queryIndent } from '@/api/orderComment'

export default {
  namespaced: true,
  state: {
    indents: []
  },
  mutations: {
    // 突变
    SET_INDENT(state, payload) {
      state.indents = payload
    }
  },
  actions: {
    // 查询订单评论
    async queryIndents({ commit }, params) {
      const res = await queryIndent(params)
      commit('SET_INDENT', res.data.list)
    }
  }
}
